package com.catchu.pattern.creational.命令模式.command;

import com.catchu.pattern.creational.命令模式.receive.BaseReceiver;
import com.catchu.pattern.creational.命令模式.receive.ProgrammerReceiver;

public class ProgrammerCommand extends BaseCommand{

    public ProgrammerCommand(){
        super(new ProgrammerReceiver());
    }
    public ProgrammerCommand(BaseReceiver baseReceiver) {
        super(baseReceiver);
    }

    @Override
    public void execute() {
        this.baseReceiver.doSomething();
    }
}
